# -*- coding: utf-8 -*-
# @Date：2024/7/18 16:33:55
# @Author：CJiaの青姝
# @FileName：env
# @Editor：PyCharm2024
# @Remark：
# ************** 导出模块 ************** #
# pip freeze > requirements.txt
# pip install -r requirements.txt
# ================================================= #
# ************** 操作日志配置，匿名用户配置  ************** #
# ================================================= #
AnonymousUser = {'id': 0, 'username': "AnonymousUser"}
# ================================================= #
# ************** 后台超级用户账号[暂不支持注册]  ************** #
# ================================================= #
system_user = {
    "admin": {"username": "admin", "password": "book@fq-md5"},
    "demo": {"username": "super@admin", "password": "super@admin"},
}
# ================================================= #
# ************** mysql数据库 配置  ************** #
# ================================================= #
# 数据库类型 MYSQL/SQLSERVER/SQLITE3/POSTGRESQL
DATABASE_TYPE = "MYSQL"
# 数据库地址
DATABASE_HOST = "127.0.0.1"
# 数据库端口
DATABASE_PORT = 3306
# 数据库用户名
DATABASE_USER = "root"
# 数据库密码
DATABASE_PASSWORD = "123456"
# 数据库名
DATABASE_NAME = "book-admin-django"

# ================================================= #
# ************** redis配置，无redis 可不进行配置  ************** #
# ================================================= #
REDIS_DEPLOY = True
REDIS_PASSWORD = ''
REDIS_HOST = '127.0.0.1'
REDIS_URL = f'redis://:{REDIS_PASSWORD or ""}@{REDIS_HOST}:6379'
# 是否开启演示环境，开启后增 删 改功能失效
DEBUG = False  # 线上环境请设置为False
# 是否开启演示环境，开启后增、删、改功能失效
DEMO = False
